package com.server.model.all.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

@AllArgsConstructor
@Getter
public enum BucketNameEnum {
    MAIN_IMAGE("main-image-0623","main-image"),
    THUMBNAIL_IMAGE("thumbnail-0623","thumbnail"),
    AI_GC_PUBLIC_MODEL("aigc-public-model","public-model"),
    ;

    private final String name;

    private final String mapperNgName;

    private static final Map<String, BucketNameEnum> map = new HashMap<>();

    static{
        for (BucketNameEnum bucketNameEnum : BucketNameEnum.values()) {
            map.put(bucketNameEnum.getName(), bucketNameEnum);
        }
    }

    public static BucketNameEnum getBucketNameEnum(String bucketName){
        return map.get(bucketName);
    }

}
